package com.nomito.minimito.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nomito.minimito.common.utils.PageUtils;
import com.nomito.minimito.entity.ImUserEntity;
import com.nomito.minimito.netty.ChatMsg;
import com.nomito.minimito.vo.GrouperVo;
import com.nomito.minimito.vo.NoExistGroupMemberVo;
import com.nomito.minimito.vo.UserInfoVo;


import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author nomito
 * @email 1790464356@qq.com
 * @date 2021-05-08 21:04:18
 */
public interface ImUserService extends IService<ImUserEntity> {

    PageUtils queryPage(Map<String, Object> params);


    Integer searchFriend(String myUsername, String friendUsername);

    //查询昵称、头像、签名
    public UserInfoVo queryUserInfo(Long userId);
    //保存用户聊天消息
    Long saveMsg(ChatMsg chatMsg);

    ImUserEntity login(String username, String password);

    Integer register(String username, String password);

    GrouperVo getUserInfo(Long userId);

    NoExistGroupMemberVo noExistGroupMember(Long userId);
}

